package com.jiezhuo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jiezhuo.entity.vo.IotSceneInfoVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author com.jiezhuo
 * @since 2022-10-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "IotSceneInfo对象", description = "")
public class IotSceneInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    @ApiModelProperty(value = "父场景号")
    private Integer pid;

    private Integer userId;

    private Integer deleteFlag;

    private String imgId;

    private Double lon;

    private Double lat;

    private String description;

    @ApiModelProperty(value = "场景类型：农业、家居")
    private Integer iotSceneType;

    @ApiModelProperty(value = "布防状态")
    private Integer guardStatus;

    private String remark;

    private String province;

    private Integer provinceCode;

    private String city;

    private Integer cityCode;

    private Integer seq;

    private Integer aid;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date atime;

    private Integer mid;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date mtime;

    @TableField(exist = false)
    private String sceneText;

    @TableField(exist = false)
    private List<IotSceneInfoVo> dList;
}
